import { checkLicense } from "../utils/license";
var render = function() {
  var _vm = this;
  var _h = _vm.$createElement;
  var _c = _vm._self._c || _h;
  return _vm.authenticated ? _c("span", { staticClass: "ele-status-dot" }, [_c("span", { class: _vm.dotClass, style: _vm.dotStyle }, [_c("span", { class: _vm.dotColor })]), _vm.text ? _c("span", { staticClass: "ele-dot-text" }, [_vm._v(_vm._s(_vm.text))]) : _vm._e()]) : _vm._e();
};
var staticRenderFns = [];
function normalizeComponent(scriptExports, render2, staticRenderFns2, functionalTemplate, injectStyles, scopeId, moduleIdentifier, shadowMode) {
  var options = typeof scriptExports === "function" ? scriptExports.options : scriptExports;
  if (render2) {
    options.render = render2;
    options.staticRenderFns = staticRenderFns2;
    options._compiled = true;
  }
  if (functionalTemplate) {
    options.functional = true;
  }
  if (scopeId) {
    options._scopeId = "data-v-" + scopeId;
  }
  var hook;
  if (moduleIdentifier) {
    hook = function(context) {
      context = context || this.$vnode && this.$vnode.ssrContext || this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext;
      if (!context && typeof __VUE_SSR_CONTEXT__ !== "undefined") {
        context = __VUE_SSR_CONTEXT__;
      }
      if (injectStyles) {
        injectStyles.call(this, context);
      }
      if (context && context._registeredComponents) {
        context._registeredComponents.add(moduleIdentifier);
      }
    };
    options._ssrRegister = hook;
  } else if (injectStyles) {
    hook = shadowMode ? function() {
      injectStyles.call(this, (options.functional ? this.parent : this).$root.$options.shadowRoot);
    } : injectStyles;
  }
  if (hook) {
    if (options.functional) {
      options._injectStyles = hook;
      var originalRender = options.render;
      options.render = function renderWithStyleInjection(h, context) {
        hook.call(context);
        return originalRender(h, context);
      };
    } else {
      var existing = options.beforeCreate;
      options.beforeCreate = existing ? [].concat(existing, hook) : [hook];
    }
  }
  return {
    exports: scriptExports,
    options
  };
}
const __vue2_script = {
  name: "EleDot",
  props: {
    type: String,
    ripple: {
      type: Boolean,
      default: true
    },
    text: [String, Boolean],
    size: {
      type: [String, Number],
      default: "6px"
    }
  },
  data() {
    return {
      authenticated: checkLicense()
    };
  },
  computed: {
    dotClass() {
      return ["ele-dot", { "ele-dot-ripple": this.ripple }].concat(this.dotColor);
    },
    dotStyle() {
      return {
        width: this.size,
        height: this.size
      };
    },
    dotColor() {
      return [
        "ele-bg-primary",
        { "ele-bg-success": this.type === "success" },
        { "ele-bg-warning": this.type === "warning" },
        { "ele-bg-danger": this.type === "danger" },
        { "ele-bg-info": this.type === "info" }
      ];
    }
  }
};
const __cssModules = {};
var __component__ = /* @__PURE__ */ normalizeComponent(__vue2_script, render, staticRenderFns, false, __vue2_injectStyles, null, null, null);
function __vue2_injectStyles(context) {
  for (let o in __cssModules) {
    this[o] = __cssModules[o];
  }
}
var index = /* @__PURE__ */ function() {
  return __component__.exports;
}();
export { index as default };
